<?php

/**
 * Domaci form.
 *
 * @package    dnevnik
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class DomaciForm extends BaseDomaciForm
{
  public function configure()
  {
      $this->setValidator('datum', new sfValidatorDateTime(array('required' => false)));
      $gods = array((date('Y') - 1), date('Y'), (date('Y') + 1));
      $godine = array();
      foreach ($gods as $god)
        $godine["$god"] = $god;

      $this->setWidget('datum', new sfWidgetFormJQueryDate(array(
      'image'=>'/images/icons/calendar_view_month.png',
      'format' => '%day%.%month%.%year%',
      'years' => $godine,
      )
      ));
  }
}
